package cn.com.open.itembank.dto;

/**
 * Created by lucky on 2018/1/15.
 */
public class RuleDifficultySaveModel extends RuleDifficultyModel {
    public RuleDifficultySaveModel() {
        this.realCount = 0;
        this.category = "";
    }

    /**
     * 试题占比数量
     */
    private float realCount;

    /**
     * 应用类别
     */
    private String category;

    /**
     * Gets category.
     *
     * @return the category
     */
    public String getCategory() {
        return category;
    }

    /**
     * Sets category.
     *
     * @param category the category
     */
    public void setCategory(String category) {
        this.category = category;
    }

    /**
     * Gets real count.
     *
     * @return the real count
     */
    public float getRealCount() {
        return realCount;
    }

    /**
     * Sets real count.
     *
     * @param realCount the real count
     */
    public void setRealCount(float realCount) {
        this.realCount = realCount;
    }

    /**
     * Copy rule difficulty model.
     *
     * @return the rule difficulty model
     */
    public RuleDifficultyModel copy() {
        RuleDifficultyModel model = new RuleDifficultyModel();
        model.setType(this.getType());
        model.setSubItemCount(this.getSubItemCount());
        model.setCount(this.getCount());
        model.setScore(this.getScore());
        model.setDurationStart(this.getDurationStart());
        model.setDurationEnd(this.getDurationEnd());
        model.setResponseDuration(this.getResponseDuration());
        model.setRepeatTimes(this.getRepeatTimes());
        model.setResponseDuration(this.getResponseDuration());
        model.setSubjective(this.isSubjective());
        model.getChapterList().addAll(this.getChapterList());

        return model;
    }
}
